package com.yuju.group.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.group.dao.IHotelDao;
import com.yuju.group.dao.entity.Hotel;
import com.yuju.group.dao.mapper.HotelMapper;
import com.yuju.group.model.CityModel;
import com.yuju.group.model.HotelModel;
import com.yuju.group.model.ProvinceModel;
import com.yuju.group.model.TownModel;
import com.yuju.persist.base.mapper.BaseMapper;

/**
 * 
 * 类名：GroupDaoImpl  <br />
 *
 * 功能：
 *
 * @author : sunyl <br />
 * @Date : 2017年11月22日 下午4:59:43  <br />
 * @version : 1.1 <br />
 */
@Repository
public class HotelDaoImpl extends AbstractBaseDao<HotelModel, Hotel, String> implements IHotelDao {
	@Autowired
	HotelMapper hotelMapper;
	
	@Override
	public BaseMapper<Hotel, String> getMapper() {
		// TODO Auto-generated method stub
		return hotelMapper;
	}

	@Override
	public int initShiftInfo(Map<String,Object> map){
		return hotelMapper.initShiftInfo(map);
	}

	@Override
	public List<ProvinceModel> selectProvinceList(Map<Object, Object> map) {
		return hotelMapper.selectProvinceList(map);
	}

	@Override
	public List<CityModel> selectCityList(Map<Object, Object> map) {
		return hotelMapper.selectCityList(map);
	}

	@Override
	public List<TownModel> selectTownList(Map<Object, Object> map) {
		return hotelMapper.selectTownList(map);
	}

	@Override
	public List<CityModel> selectHotelCity(Map<Object, Object> map) {
		return hotelMapper.selectHotelCity(map);
	}

	@Override
	public List<TownModel> selectHotelTown(Map<Object, Object> map) {
		return hotelMapper.selectHotelTown(map);
	}

}
